<!DOCTYPE html>
<html lang="zh_cn">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title></title>
  <link rel="stylesheet" href="./player.css">
</head>
<body>
  <div class="container" id="app">
    <div class="player-wrapper">
      <video src="" ref="player" id="player" :style="{'transform':'rotate( '+rotateDeg+'deg )'}" :class="{'shu':rotateDeg===90 || rotateDeg===270}"></video>
      <dropbox @change="dropHandle" :tip="currentFile?'':'将视频文件拖到此处'" @move="mouseMoveHandle" @mclick="playBtnHandle"></dropbox>
      <div class="tr-box" v-show="trShow">
        <div class="sp-btn" @click="trHandle('min')">小</div>
        <div class="sp-btn" @click="trHandle('max')">大</div>
        <div class="sp-btn" @click="trHandle('close')">关</div>
      </div>
    </div>
    <div class="ctrl-box">
      <div class="sp-btn" @click="playBtnHandle">{{isPlaying?'暂停':'开始'}}</div>
      <slider :value="videoPrecent" @update:value="processHandle" class="l1"></slider>
      <div class="sp-box">
        {{currentTimeText}}/{{durationText}}
      </div>
      <div class="sp-btn" @click="loopHandle">{{isLoop?'循环':'列表'}}</div>
      <div class="sp-btn" @click="mutedHandle">{{isMuted?'静音':'声音'}}</div>
      <slider v-model:value="volume" class="l2"></slider>

    </div>
  </div>
  <script src="./js/util.js"></script>
  <script src="./js/vue.global.js"></script>
  <!--vuecom-->
  <script src="./components/dropbox.js"></script>
  <script src="./components/slider.js"></script>
  <!-- // vuecom-->

  <script src="./js/hotkey.js"></script>
  <script src="./js/player.js"></script>

</body>
</html>